﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OptusMobile.Web.ManagerPortal
{
    public partial class ManagerPortal : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["flag"] == null)
            {
                Response.Redirect("Login.aspx");
            }
            else
            {
                string name = Session["flag"].ToString();
                string type = "admin";
                if (name.Equals(type))
                {
                    string loginname = Session["ID"].ToString();
                    this.lblogin.Text = loginname;
                }
                else
                {
                    Response.Redirect("Login.aspx");
                }
            }
        }
    }
}
